package czt.ocr.mapper;

import czt.ocr.entity.BaseVoltage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author czt
 * @version 1.0
 * @since 2025/4/8
 */
@Mapper
public interface BaseVoltageMapper {

    @Insert("insert into base_voltage values (#{num},#{mrid},#{name},#{nomkV})")
    void insertBaseVoltage(BaseVoltage baseVoltage);

    @Select("select * from base_voltage")
    List<BaseVoltage> getBaseVoltages();
}
